home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / radio.css < prev    next >
Cascading Style Sheet File  |  2008-11-08  |  3KB  |  115 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *
  22.  */
  23.  
  24. /* ===== radio.css ===================================================
  25.   == Styles used by the XUL radio element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* ::::: radio ::::: */
  31.  
  32. radio {
  33.   -moz-box-align: center;
  34.   margin: 2px 4px;
  35.   padding: 1px 2px 1px 4px;
  36. }
  37.  
  38. .radio-label-box {
  39.   margin-left: 2px;
  40.   border: 1px solid transparent;
  41.   padding: 0px 0px 1px 1px;
  42. }
  43.  
  44. .radio-icon {
  45.   margin-right: 2px;
  46. }
  47.  
  48. .radio-label {
  49.   margin: 0 !important;
  50. }
  51.  
  52. /* radio box*/
  53. .radio-check-box1 {
  54.   list-style-image:url("chrome://global/skin/radio/radio.png");
  55. }
  56.  
  57.  
  58. /* ..... focused state ..... */
  59.  
  60. radio[focused="true"] .radio-label-box{
  61.   border: 1px dotted #66C3F0;    
  62.   /*-moz-border-radius:50%;*/
  63. }
  64.  
  65. radio[focused="true"] .radio-check-box1 {
  66.   list-style-image: url("chrome://global/skin/radio/radio-focus.png");
  67. }
  68.  
  69. radio[selected="true"][focused="true"] .radio-check-box1 {
  70.   list-style-image: url("chrome://global/skin/radio/radio-checked-focus.png");
  71. }
  72.  
  73.  
  74. /* ::::: pressed image ::::: */
  75.  
  76. radio:active .radio-check-box1 {
  77.   list-style-image:url("chrome://global/skin/radio/radio-active.png");
  78. }
  79.  
  80. radio[selected="true"]:active .radio-check-box1 {
  81.   list-style-image:url("chrome://global/skin/radio/radio-checked-active.png");
  82. }
  83.  
  84.  
  85. /* ..... selected state ..... */
  86.  
  87. radio[selected="true"] .radio-check-box1 {
  88.   list-style-image: url("chrome://global/skin/radio/radio-checked.png");
  89. }
  90.  
  91.  
  92. /* ..... hover state ..... */
  93.  
  94. radio:not([disabled="true"]):hover .radio-check-box1 {
  95.   list-style-image:url("chrome://global/skin/radio/radio-active.png") !important;
  96. }
  97.  
  98. radio[selected="true"]:not([disabled="true"]):hover .radio-check-box1 {
  99.   list-style-image:url("chrome://global/skin/radio/radio-checked-active.png") !important;
  100. }
  101.  
  102.  
  103. /* ..... disabled state ..... */
  104. radio[disabled="true"] {
  105.   opacity: 0.4;
  106.   color: #785130;
  107. }
  108.  
  109. radio[disabled="true"] .radio-check-box1 {
  110.   list-style-image: url("chrome://global/skin/radio/radio.png");
  111. }
  112.  
  113. radio[selected="true"][disabled="true"] .radio-check-box1 {
  114.   list-style-image: url("chrome://global/skin/radio/radio-checked.png");
  115. }